package com.lihaogn.sell.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * fileName: FoodMaterial
 * description: 食材
 *
 * CREATE TABLE `food_material` (
 *   `fm_id` varchar(40) NOT NULL,
 *   `fm_name` varchar(10) NOT NULL,
 *   `fm_create_time` datetime NOT NULL DEFAULT now(),
 *   `fm_modified_time` timestamp,
 *   PRIMARY KEY (`fm_id`),
 *   UNIQUE KEY `uk_fm_name` (`fm_name`)
 * ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 *
 * @author lihaogn-main
 * @version 1.0
 * @date 2019/11/23 14:55
 */
@Data
public class FoodMaterial {

    private Integer materialId;
    private String materialName;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date materialCreateTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date materialModifiedTime;
}
